package com.microlecture.service.impl;

import com.microlecture.entity.UserEntity;
import com.microlecture.mapper.UserMapper;
import com.microlecture.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserEntity record) {
        return userMapper.insert(record);
    }

    @Override
    public int insertSelective(UserEntity record) {
        return userMapper.insertSelective(record);
    }

    @Override
    public UserEntity selectByPrimaryKey(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserEntity record) {
        return userMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(UserEntity record) {
        return userMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(UserEntity record) {
        return userMapper.updateByPrimaryKey(record);
    }

    @Override
    public UserEntity queryByLoginName(String loginName) {
        return userMapper.queryByLoginName(loginName);
    }
}